import { request,request2 } from './index'
export function getArtistList(type,area,initial ) {
  return request({
    url: '/artist/list',
    params: {
      type,
      area,
      initial
    }
  })
}
export function getArtistDetail(id) {
  return request2({
    url: '/artist/detail',
    params: {
      id
    }
  })
}
export function getArtistSongs(id) {
  return request2({
    url: '/artists',
    params: {
      id
    }
  })
}
export function getArtistAlbums(id,offset) {
  return request2({
    url: '/artist/album',
    params: {
      id,
      limit: 12,
      offset
    }
  })
}
export function getArtistMvs(id,offset) {
  return request2({
    url: '/artist/mv',
    params: {
      id,
      limit: 12,
      offset
    }
  })
}
export function getArtistIntro(id) {
  return request2({
    url: '/artist/desc',
    params: {
      id
    }
  })
}